import pageination from '../../components/pageination/pageination.vue'
export default {
	//数据
	data() {
		return {
      total: 0, //总条数
      page: 1, //当前页
      size: 10,//每页显示条数
		  achievementList: [] //成果列表信息
		}
	},
	components: {
		pageination
	},
	created() { //调用方法
	},
	mounted() {

	},
	methods: { //写函数方法
			//页码切换执行方法
		pageFn: function(val) {
			this.page = parseInt(val);
			//此处调列表数据接口
			this.searchTodo(); //查询新闻
		},
		/**返回子组件用户选择的一页显示条数**/
		obtainChild: function(data) {
			this.row = data;
		},
    //搜索数据列表
    searchTodo: function() {
      let that = this;
      //初始化通知公告分页数据
      that.$post(
        that.urls.getAchievementPageInfo,
        {"pageNum": that.page,"pageSize": that.size}
      )
      .then(function(res) {
        if(res.success) {
          that.achievementList = res.pageInfo.list;
          that.total=res.pageInfo.total;
        }
      })
    },
		//通知公告详情页
		ResultsNavBox: function(uuid) {
			if (uuid != null && uuid != "") {
        this.set("resultsDetailsid", uuid);
			  this.$router.push({
          path: "resultsDetails"
        })
      }
		},

	}
}
